import { Card } from 'antd';
import ZLink from 'components/ZLink';
import React, { useEffect } from 'react';
import { curry, progressCurry, add } from './function';
export default () => {
    useEffect(() => {
        function test() {

        }
        // const result = curry(test, 3, 4)
        // result(1)(2)
        // const result = progressCurry(test)
        // result(1, 2)(3)(4)
        console.log(add(1,3)(2)(3))
    }, [])
    return (
        <section>
            <Card title="相关链接">
                <ZLink href="https://www.yuque.com/wangpingan/cute-frontend/pnke8h" label="详解JS函数柯里化" />
            </Card>
        </section>
    )
}